package com.design.pattern.decorator;

public class DecoratorTest {

    public static void main(String[] args) {

        Beverage beverage = new Decaf();
        beverage = new Milk(beverage);
        beverage = new Milk(beverage);
        beverage = new Soy(beverage);
        System.out.println(beverage.getDescription()+":"+beverage.cost());

    }
}